package com.test.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloWorldController {
	private static final Logger logger = LoggerFactory.getLogger(HelloWorldController.class);

	@RequestMapping("/helloworld")
	public ModelAndView helloWorld(){
		
		logger.info("helloWord!!");
		
		String message = "Hello World, Spring 3.0!!";
		
		return new ModelAndView("helloworld", "message", message);
	}

}
